<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@page isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>我的委托管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../statics/js/rem.js"></script>
    <script src="../statics/js/jquery.min.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../statics/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/page.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/all.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/loaders.min.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/css/loading.css"/>
    <link rel="stylesheet" type="text/css" href="../statics/slick/slick.css"/>
    <script type="text/javascript">
        $(window).load(function () {
            $(".loading").addClass("loader-chanage")
            $(".loading").fadeOut(300)
        })
    </script>
</head>
<!--loading页开始-->
<div class="loading">
    <div class="loader">
        <div class="loader-inner pacman">
            <div></div>
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
    </div>
</div>
<!--loading页结束-->
<%
    Object name = session.getAttribute("user");
    if (name == null) {
        out.print("<script>alert('请登录');location='../jsp/sign.jsp'</script>");
    }
%>
<body>
<div class="headertwo clearfloat" id="header">
    <a href="javascript:history.go(-1)" class="fl box-s"><i class="iconfont icon-arrow-l fl"></i></a>
    <p class="fl">我的委托管理</p>
</div>

<div class="clearfloat" id="main">
    <div class="schedule clearfloat">
        <c:forEach items="${listHouse}" var="list">
            <div class="content clearfloat box-s">
                <div class="list clearfloat fl box-s">
                        <div class="tu clearfloat">
                            <c:set value="${fn:split(list.houseImg.imgname, ',')}" var="names" />
                            <img src="../statics/upload/${names[0]}"/>
                        </div>
                        <div class="right clearfloat">
                            <div class="tit clearfloat">
                                <p class="fl">${list.title}</p>
                                <span class="fr">${list.price}<samp>元/月</samp></span>
                            </div>
                            <p class="recom-jianjie">${list.htype.shi}室${list.htype.ting}厅 | ${list.area}m² | ${list.ftype.ftypeName}</p>
                            <div class="recom-bottom clearfloat">
                                <span><i class="iconfont icon-duihao"></i>随时住</span>
                                <span><i class="iconfont icon-duihao"></i>家电齐全</span>
                            </div>
                        </div>
                </div>
                <div class="topsche-top entrust box-s clearfloat">
                    <p class="tit fr entrust-btn" id="auto" style="display: inline-block">

                        <c:choose>
                            <c:when test="${list.audit==0}">
                                <a style="color: skyblue">审核中</a>
                            </c:when>
                            <c:when test="${list.audit==1}">
                                <%--跳房屋详情页面--%>
                                <a href="../houses/houseDetails/${list.house_id}" style="color: gainsboro">已通过</a>
                            </c:when>
                            <c:otherwise>
                            <a href="../house/houseViewPage.html/${list.house_id}" style="color: red">未通过</a>
                            </c:otherwise>
                        </c:choose>
                    </p>
                </div>
            </div>
        </c:forEach>
    </div>
</div>
</body>
<script type="text/javascript" src="../statics/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../statics/js/jquery.SuperSlide.2.1.js"></script>
<script type="text/javascript" src="../statics/slick/slick.min.js"></script>
<script type="text/javascript" src="../statics/js/jquery.leanModal.min.js"></script>
<script type="text/javascript" src="../statics/js/tchuang.js"></script>
<script type="text/javascript" src="../statics/js/hmt.js"></script>
</html>
